from typing import Optional, TypeVar

from pydantic import BaseModel

T = TypeVar("T", bound=dict)


class NewBill(BaseModel):

    amount: float
    order_id: Optional[int]
    shop_id: str
    currency_in: Optional[str]

    class Config:
        arbitrary_types_allowed = True
